Add GTK_DEBUG=accessibility
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Jul 2020 14:36:20 +0000 (10:36 -0400)
committerEmmanuele Bassi <ebassi@gnome.org>
Sun, 26 Jul 2020 19:31:15 +0000 (20:31 +0100)
Add a debug flag for accessibility-related debug spew.

gtk/gtkdebug.h
gtk/gtkmain.c

index 4b1a4806e3dab7c67456a01bdd8ab4f56aaef699..451420a603d4c87d03f70fa03f7efff3cb7580f5 100644 (file)
@@ -52,6 +52,7 @@ typedef enum {
   GTK_DEBUG_SNAPSHOT        = 1 << 14,
   GTK_DEBUG_CONSTRAINTS     = 1 << 15,
   GTK_DEBUG_BUILDER_OBJECTS = 1 << 16,
+  GTK_DEBUG_A11Y            = 1 << 17,
 } GtkDebugFlag;
 
 #ifdef G_ENABLE_DEBUG
index 6d2f3cf3b1237f9343fc27fe9a22a3764b025371..30d6d20d091c22582de96845f0067df82ab99b9d 100644 (file)
@@ -182,6 +182,7 @@ static const GdkDebugKey gtk_debug_keys[] = {
   { "interactive", GTK_DEBUG_INTERACTIVE, "Enable the GTK inspector" },
   { "touchscreen", GTK_DEBUG_TOUCHSCREEN, "Pretend the pointer is a touchscreen" },
   { "snapshot", GTK_DEBUG_SNAPSHOT, "Generate debug render nodes" },
+  { "accessibility", GTK_DEBUG_A11Y, "Information about accessibility state changes" },
 };
 #endif /* G_ENABLE_DEBUG */